package com.itkf.core.config;

import com.itkf.common.enums.PoolType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;

/**
 * 动态更新读取的配置文件
 */

@Configuration
@ConfigurationProperties("spring.dynamic.tp")
@Data
public class DtpProperties {
    /**
     * 配置中心类型
     */
    private String configType;
    /**
     * 各个线程池配置
     */
    private List<ThreadPoolProperties> executors = new ArrayList<>();
    /**
     * 配置中心详细信息
     */
    private ConfigCenter configCenter;

}
